<?php $this->load->module('index/index/head');?>
<?php $this->load->module('member/index/center_head');?>

<!--container-->
<div class="container">
    <div class="row">
        <div class="col-md-12">
            <div class="breadcrumb-box">
                <span class="breadcrumb-new-style">您所在的位置：</span>
                <ol class="breadcrumb ol-bgc">
                    <li><a href="<?php echo site_url('member/index/center')?>">会员中心</a></li>
                    <li class="active">我的订单</li>
                </ol>
            </div>
        </div>

        <?php $this->load->module('member/index/center_left',$extra);?>

        <div class="col-md-9 member-center-box-margin">

            <?php include_once 'order_list_nav.php';?>
            <div class="tab-content">
                <div role="tabpanel" class="tab-pane active fade in" id="indent">
                    <ul class="nav nav-tabs payment-xz col-md-12" role="tablist">
                        <!-- ..............................-->
                        <li role="presentation" <?php  if($_GET['pay']!=3){?>class="active"<?php }?>>
                            <a  href="<?php echo site_url('order/index/line_list/?pay=1')?>">未付款</a>
                        </li>
                        <li role="presentation" <?php if($_GET['pay']==3){?>class="active"<?php }?>>
                            <a href="<?php echo site_url('order/index/line_list/?pay=3')?>" >已付款</a>
                        </li>
                        <!-- ..................................-->
                    </ul>
                    <div class="tab-content">
                        <div role="tabpanel" class="tab-pane active fade in" id="weifukuan">
                            <div class="subheading-xz">
                                <div class="subheading-xz1">订单信息</div>
                                <div class="subheading-xz2">订单类型</div>
                                <div class="subheading-xz3">出游日期</div>
                                <div class="subheading-xz4">订单金额</div>
                                <div class="subheading-xz5">订单状态</div>
                                <div class="subheading-xz6">操作</div>
                            </div>

                            <?php if(isset($list)&&!empty($list)): ?>
                            <?php foreach($list as $val):?>
                            <div class="Orderdetail clearfix">
                                <div class="Orderdetail-header clearfix">
                                    订单编号：<?php echo $val['order_sn'];?> &nbsp;&nbsp;&nbsp;预定时间：<?php echo $val['add_time'];?>
                                </div>
                                <div class="Orderdetail-message clearfix">
                                    <div>
                                        <img src="<?php echo filter_img($line_thumbs[$val['line_id']])?>" onerror="this.error=null;this.src='<?php echo URLPRE;?>static/default/mobile/images/no_thumb.png'">
                                    </div>
                                    <div class="Orderdetail-message-text clearfix">
                                        <div>
                                            <span class="Orderdetail-message-text1"><?php echo $val['line_name'];?></span>
                                            <span class="subheading-xz2"><?php echo $cat_type[$val['cat_type']]?></span>
                                            <span  class="subheading-xz3"><?php echo $val['go_date'];?></span>
                                            <span class="subheading-xz4"><?php echo price_format($val['order_account']);?></span>
                                            <span class="Orderdetail-message-text4"><?php echo $val['pay_status_name']?></span>
                                            <span class="Orderdetail-message-text5">
<!--                                                <img src="images/6.png">&nbsp;还剩23时25分-->&nbsp;
                                        <?php if($val['order_status']==3){?>&nbsp;已取消<?php }else if($_GET['pay']!=3){?><a href="<?php echo site_url('pay/'.$val['order_id']);?>"> 去付款</a>
                                        <?php }else if($_GET['pay']==3){?>

                                            <a href="<?php echo site_url('xianlu/'.$val['line_id'].'.html');?>"> 去评论</a>
                                        <?php }?>
                                                <p><a href="<?php echo $val['edit_url'];?>"> 查看</a></p></span>
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <?php endforeach;?>
                            <?php endif;?>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <!------------------------------所有信息完-------------------------------------------->
        <div class="col-md-12">
            <div class="personal-nav" style="padding:0 15px 15px 0 ">
                <div class="page_nav">
                    <?php echo $this->mypageclass->show(2); ?>
                </div>
            </div>
        </div>
        <!----------------------导航分页------------------------------------------->
    </div>
</div>
<?php $this->load->module('index/index/foot');?>
